﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Td.Additional.Log
{
    /// <summary>
    /// Deleting log file event arguments class.
    /// </summary>
    public class DeletingLogFileEventArgs : EventArgs
    {
        #region Properties

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="DeletingLogFileEventArgs"/> is cancel.
        /// </summary>
        /// <value><c>true</c> if cancel; otherwise, <c>false</c>.</value>
        public Boolean Cancel { get; set; }

        /// <summary>
        /// Gets or sets the name of the file.
        /// </summary>
        /// <value>The name of the file.</value>
        public String FileName { get; set; }

        #endregion

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="DeletingLogFileEventArgs"/> class.
        /// </summary>
        public DeletingLogFileEventArgs()
        {
            Cancel = false;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="DeletingLogFileEventArgs"/> class.
        /// </summary>
        /// <param name="fileName">Name of the file.</param>
        public DeletingLogFileEventArgs(String fileName)
            : this()
        {
            FileName = fileName;
        }

        #endregion
    }
}